
#ifndef __VOLUMEUNIT_H__
#define __VOLUMEUNIT_H__

#include <Unit.h>

class Formatter;

class VolumeUnit: public Unit
{
public:
	static const VolumeUnit& getOz();
	static const VolumeUnit& getTbsp();
	static const VolumeUnit& getTsp();

	virtual const Unit& getBaseUnit() const ;

	virtual void printOrderedUnitsList(const Formatter& formatter)const;
	
private:
	VolumeUnit(int factor, string name_m, const eUnitType unitType);

	virtual void appendAndSortUnit(OrderedUnits & orderedunits, const Unit & unit) const;
};

#define OZ VolumeUnit::getOz()
#define TBSP VolumeUnit::getTbsp()
#define TSP VolumeUnit::getTsp()

#endif

